package cn.ruihusoft.ql.client;

import cn.ruihusoft.ql.pojo.Response;
import cn.ruihusoft.ql.pojo.user.UserLoginRequest;
import cn.ruihusoft.ql.pojo.user.UserTokenResponse;
import com.dtflys.forest.annotation.Get;
import com.dtflys.forest.annotation.JSONBody;
import com.dtflys.forest.annotation.Post;
import com.dtflys.forest.annotation.Query;
import com.dtflys.forest.http.ForestResponse;

public interface UserClient extends BaseClient {

    @Post("/user/login")
    ForestResponse<String> login(@JSONBody UserLoginRequest request);

    @Get("/auth/token")
    Response<UserTokenResponse> token(@Query("client_id") String clientId, @Query("client_secret") String clientSecret);
}
